package com.jf.identity.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 违纪代码详细
 *
 * @author FCG
 */
public class FoulCodeDetail implements Serializable {
    private static final long serialVersionUID = -6247990106083232982L;
    /**
     * 违纪详情代码id
     */
    @JSONField(name = "FoulCodeDetailId")
    private String foulCodeDetailId;
    /**
     * 违纪代码 最大10个字符
     */
    @NotBlank(message = "违纪代码 不能为空")
    @Size(max = 10,message = "违纪代码 最大10个字符")
    @JSONField(name = "Code")
    private String code;
    @JSONField(name = "Name")
    private String name;
    @JSONField(name = "Description")
    private String description;
    /**
     * 违纪类型 0表示缺考；1表示违纪；2表示作弊；3表示其他
     */
    @JSONField(name = "Type")
    private String type;


    public String getFoulCodeDetailId() {
        return foulCodeDetailId;
    }

    public void setFoulCodeDetailId(String foulCodeDetailId) {
        this.foulCodeDetailId = foulCodeDetailId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "FoulCodeDetail{" +
                "foulCodeDetailId='" + foulCodeDetailId + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
